package com.lincoln.jenkins.test.actions;

import com.lincoln.jenkins.test.replys.Reply;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/// <summary>
/// 从服务器获取单个好友或者群
/// </summary>
/// <param name="wxid">如果传空字符串，从本地获取所有成员，否则从服务器获取单个成员</param>
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GetContact implements Reply {
    private String wxid;

    @Override
    public String genUrl() {
        return "<&&>GetContact" + (wxid != null ? ("<&>" + wxid) : "");
    }
}
